//
// Created by LiuYou on 2021/7/2.
//

#ifndef LINUXENVIRONMENTPROGRAMMING_MYSEMAPHORE_HPP
#define LINUXENVIRONMENTPROGRAMMING_MYSEMAPHORE_HPP


typedef void mysem_t;


mysem_t* mySemInit(int initVal);

int mySemAdd(mysem_t*, int);

int mySemSub(mysem_t*, int);

int mySemDestroy(mysem_t*);



















//class MySemaphore {
//
//};


#endif //LINUXENVIRONMENTPROGRAMMING_MYSEMAPHORE_HPP
